// cover some element-ui styles
.v-page,
body {
  .el-overlay-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .el-dialog {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
  }

  .el-dialog__header {
    height: 52px;
    line-height: 52px;
    border-bottom: 1px solid var(--el-border-color-light);
    margin: 0;
    padding: 0 15px;
    padding-right: 40px;
  }

  .el-dialog__body {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(98vh - 120px);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .full > .el-dialog__body {
    height: calc(98vh - 120px);
  }

  .is-fullscreen {
    & > .el-dialog__body {
      max-height: calc(100vh - 106px);
    }
  }

  .el-dialog__footer {
    // height: 52px;
    position: relative;
    line-height: 52px;
    text-align: center;
    padding: 0 15px;
    border-top: 1px solid var(--el-border-color-light);
    .el-dropdown {
      line-height: 52px;
    }
  }

  .el-form-item__label {
    font-weight: bold;
  }

  .el-card__header {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
  }
}

body {
  // .el-input {
  //   --el-input-text-color: #333;
  // }

  .v-title {
    font-weight: 700;
    border-left: 2px solid var(--el-color-primary);
    padding-left: 10px;
    height: 16px;
    line-height: 16px;
  }
  // 换肤注释  ui是有特殊颜色需求？？？
  // .el-popper.is-dark {
  //   background-color: var(--el-bg-color);
  //   border-color: var(--el-bg-color);
  //   color: var(--base-text-color);
  // }

  // .el-popper.is-dark .el-popper__arrow::before {
  //   background-color: var(--el-bg-color);
  //   border-color: var(--el-bg-color);
  //   color: var(--base-text-color);
  // }

  .el-input-number .el-input__inner {
    text-align: left;
  }

  .el-input__wrapper {
    padding: 1px 10px;
  }

  .el-input-number.is-without-controls .el-input__wrapper {
    padding: 0 10px;
  }

  .nm {
    .el-button {
      margin: 0;
    }
  }

  .messagebox-confirm-button {
    --el-button-bg-color: #e50113;
    --el-button-border-color: #d30213;
    --el-button-hover-text-color: #fff;
    --el-button-hover-bg-color: #f51225;
    --el-button-hover-border-color: #ca0011;
    --el-button-active-bg-color: #e00618;
    --el-button-active-border-color: #b8000f;
  }
  .el-tabs__nav-wrap::after {
    height: 1px;
  }
}

.v-page {
  * {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
  }
  .el-card.is-always-shadow {
    box-shadow: none;
  }
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse > div > .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link {
  color: var(--el-color-primary) !important;
}

.public-dialog {
  .el-dialog__header {
    border-bottom: 1px solid var(--base-border-color);
    margin-right: 0;
  }

  .el-dialog__title {
    font-size: 14px;
    font-weight: 500;
    // color: #0a1431;
    line-height: 20px;
  }

  .el-dialog__body {
    padding: 24px;
  }

  .el-dialog__footer {
    padding: 0 24px;
    border-top: 1px solid var(--base-border-color);
  }
}

/* 临时方案 各系统升级element 2.5 后可删除  */
.el-select {
  --el-select-width: "" !important;
}
.el-select__wrapper {
  padding: 1px 10px !important;
}
